package com.wangcanxuan.www.entity.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 任务实体类与数据库task表一一映射
 *
 * @author HHLJ
 * @date 2022/04/01
 */
@Table(tableName = "task")
public class Task {
    @Column(columnName = "id",description = "主键")
    @PrimaryKey()
    private String id;

    @Column(columnName = "tribe_id",description = "部落id")
    private String tribeId;

    @Column(columnName = "task_name",description = "任务名")
    private String taskName;

    @Column(columnName = "content",description = "任务内容")
    private String content;

    @Column(columnName = "publisher_id",description = "发布者id")
    private String publisherId;

    @Column(columnName = "level",description = "任务难度")
    private Integer level;

    @Column(columnName = "acceptor_id",description = "接受者id")
    private String acceptorId;

    @Column(columnName = "accept_date",description = "接收日期")
    private LocalDateTime acceptDate;

    public Task() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTribeId() {
        return tribeId;
    }

    public void setTribeId(String tribeId) {
        this.tribeId = tribeId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(String publisherId) {
        this.publisherId = publisherId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getAcceptorId() {
        return acceptorId;
    }

    public void setAcceptorId(String acceptorId) {
        this.acceptorId = acceptorId;
    }

    public LocalDateTime getAcceptDate() {
        return acceptDate;
    }

    public void setAcceptDate(LocalDateTime acceptDate) {
        this.acceptDate = acceptDate;
    }
}
